package com.yan.test.work.testpaging3;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yan.test.work.testpaging3.databinding.LayoutDataItemBinding;

import java.util.ArrayList;
import java.util.List;

/**
 * Create By : 'YWY'
 * On : 2024/4/2
 */
public class DataAdapter2 extends BaseQuickAdapter< DataBean , BaseDataBindingHolder> implements LoadMoreModule {


    public DataAdapter2() {
        super(R.layout.layout_data_item);
    }


    @Override
    protected void convert(@NonNull BaseDataBindingHolder baseViewHolder, DataBean dataBean) {
        LayoutDataItemBinding binding = (LayoutDataItemBinding) baseViewHolder.getDataBinding();
        binding.setData(dataBean);
    }

}
